package com.hk.service.view;

import java.math.BigDecimal;
import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.view.OrderView;

public interface IOrderView {
	public OrderView findById(long id);

	public List<OrderView> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<OrderView> findByFilter(HqlFilter hqlFilter);

	public BigDecimal getCommission(Long orderId);

	public BigDecimal getAllCommission(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);

	/**
	 * 获取佣金, null 为总佣金， 1为已发佣金， 0为在途佣金
	 */
	public BigDecimal getTotalCommByUser(Long userId, Integer commissionStatus);

	/**
	 * 获取佣金, null 为总佣金， 1为已发佣金， 0为在途佣金
	 */
	public BigDecimal getTotalCommByFinPhone(String finPhone,
			Integer commissionStatus);

	/**
	 * 获取订单
	 * 
	 * @param userId
	 * @param userRealName
	 * @param finUserName
	 * @param curPage
	 * @param pageSize
	 * @return
	 */
 
	public List<OrderView> getAll(Long userId, String userRealName, String finUserName, String orderOrgName,  Integer curPage, Integer pageSize, Integer reqType);
 
	/**
	 * 获取订单总数
	 * 
	 * @param userId
	 * @param userRealName
	 * @param finUserName
	 * @return
	 */
 
	public Long getSize(Long userId, String userRealName, String finUserName,  String orderOrgName, Integer reqType);
}
